using System;
using System.Collections.Generic;
using System.Text;
using FluentNHibernate.Mapping;

namespace Models.DataAccess
{
    public class ContentLinkMap : ClassMap<ContentLinks>
    {
        public ContentLinkMap()
        {
            Table("ContentLinks");
            LazyLoad();
            Id(x => x.LinkId).GeneratedBy.Guid().Column("LinkId");
            References(x => x.PageContent).Column("ContentId");
            Map(x => x.LinkText).Column("LinkText").Not.Nullable().Length(250);
            Map(x => x.LinkUrl).Column("LinkUrl").Length(800);
        }
    }
}
